import ajax from './public'

export function userLogin(params) { //用户登录接口
	return ajax.fetchPost('/user/login', params)
}

export function userRegist(params) { //用户注册接口
	return ajax.fetchPost('/user/regist', params)
}

export function userSentcode(params) { //获取短信验证码接口
	return ajax.fetchGet('/user/sendMobileCode', params)
}

export function getCaptcha(params) { //获取图片验证码接口
	return ajax.fetchGet('/user/getCaptcha', params)
}

export function resetPassword(params) { //重置密码接口
	return ajax.fetchPost('/user/resetPassword', params)
}

export function checkPublicLogin(params) { //判断微信公众号登录
	return ajax.fetchPost('/user/checkPublicLogin', params)
}